home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
cli
/
pcommand.arc
/
PCOMMAND.DOC
< prev
next >
Wrap
Text File
|
1985-11-20
|
20KB
|
378 lines
Command Overview
Copyright (c) 1986
Solid Applications Inc.
1333 Moon Drive
Yardley, PA 19067
Command is a shareware product from Solid Applications Inc.
You are allowed to give a copy of the PCOMMAND.PRG program
and this documentation to anyone for no charge. The program
may not be sold or included as part of a package for sale without
prior written approval from Solid Applications. We encourage
you to distribute this package to your friends and coworkers who
are using the Atari ST.
You may register your copy of PCommand with Solid Applications
for $25.00. You will receive a copy of the full documentation
and a disk containing the desk accessory version of PCommand
along with some useful utilities including a format program which
creates diskettes that can be read on an IBM PC (both single and
double sided disks).
WHAT IS PCOMMAND:
Command is a line-oriented command line interpreter with
batch file support. It provides an interactive interface to Atari
TOS which runs on the Atari ST. Commands are similar to PC-DOS
commands PCommand provides faster access to TOS facilities than
the GEM desktop. Multiple commands can be entered on a single line
for even better efficiency.
Command has a number of built-in commands which are always available
and can run GEM or TOS-based applications by simply typing their name.
A list of local commands is displayed by typing HELP. The batch file
facility can be used to present GEM-based menus and alert boxes. This
allows a GEM interface to be built using a text editor to create a
batch file. Most text editors available for the ST will work.
SPECIAL KEYS AND EDITING
Commands entered at the command prompt can be edited using the
following special keys.
control-S Suspend output
control-Q Continue output
control-C Enter query mode if BREAK is ON
ESC same as control-C
RETURN Use current line as command
control-A Move to start of line
control-B Move forward one character
control-C Copy template until matching
character
control-E Move to end of line
control-F Move backward one character
control-J Skip to next template character
control-N Copy next template character
control-R Restart entry on the next line
control-T Make current input into template
control-X Delete current line
control-Z Copy rest of template
ESC Same as control-X
Left arrow Same as control-B
Right arrow Same as control-F
Home Same as control-R
Undo Same as control-Z
Shifted left arrow Same as control-A
Shifted right arrow Same as control-E
Shifted Home/Clr Same as control-X
F1 Same as control-N
F2 Same as control-C
F3 Same as control-Z
F4 Same as control-J
F5 Same as control-T
BUILT-IN COMMANDS
Command has a number of built-in commands which can be entered
directly or used in batch files. There is also a small set of
commands which can only be used within a batch file. The following
is a list of built-in commands.
? Show built-in command list
ABORT Show/Set Abort option
BELL Sound bell
BREAK Show/Set Break option
BYE Exit from batch file/PCommand
CD Change current directory
* CHAIN Chain to new batch file
CHDIR Change current directory
CLS Clear screen
COPY Copy file(s)
CP Copy file(s)
CTTY Show/set console device
DATE Show/set date
DEL Delete file(s)
DIR Show directory
D Show directory
ECHO Set/show/display text
ERASE Delete file(s)
ERA Delete file(s)
EXIT Exit from batch file/PCommand
* FOR Iterate over file name(s)
GEM Show/set/menu interface
* GOTO Goto label in batch file
HELP Show built-in command list)
* IF Conditional command execution
INPUT Interactive/text input
LOG Show/set command logging status
MKDIR Make new directory
MD Make new directory
PATH Show/set default search path
PAUSE Wait for input
PRINT Print file(s)
PROMPT Show/set prompt
QED Quick editor for creating batch files
REM Remark (comment)
REN Rename a file
RENAME Rename a file
RESERVE Reserve memory for program
RMDIR Remove directory
RD Remove directory
SET Show/Set environment string
* SHIFT Shift arguments
STACK Show current execution stack
SWITCHAR Show/set switch character
TIME Show/set time
TOS Execute program in TOS environment
TYPE Type file on console
VER Display TOS version number
VERIFY Show/Set floppy disk verify mode
VOL Show disk volume label
WRAP Show/Set end of line wrap mode
* indicates batch file use only.
Multiple commands are placed on a line by separating them with
an exclamation point, '!'. Command lines can be up to 160
characters. Labels are the GOTO command are names immediately
preceeded by a colon, ':'. Any text after a label is assumed to
be a comment.
Batch file parameters are indicated by a leading percent sign, '%'.
A single digit after '%' indicates a parameter to the batch file.
The parameter relaces both the percent sign and digit. Any of the
following special characters can be used if the percent sign is
immediately followed by a colon, ':'.
%:c first character from last INPUT result
%:d disk letter from last GEM :FILE command
%:e ERRORLEVEL from last program
%:f file name from last GEM :FILE command
%:i string from last INPUT result
%:p path name from last GEM :FILE command
%:v video mode (0=low, 1=medium, 2=mono)
%:: current time
%:/ current date
BUILT-IN COMMANDS
General syntax: optional items are placed within square
brackets such as [XYZ]. Alternatives are separated by a
vertical bar as with ON|OFF. Repeated items are followed by
ellipses (...). Note, keywords do not have to be capitalized
when used.
? Help command, no parameters,
print built-in commands
ABORT [ON|OFF] Set/show ABORT flag, OFF indicates
termination when BREAK is ON and a
control-C or ESC key is pressed.
ON prints the STACK status and allow